//
//  JCReportCommentsCell.m
//  SquashSpark
//
//  Created by 郭吉成 on 2017/12/4.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import "JCReportCommentsCell.h"
#import "JCReportCommentModel.h"

@interface JCReportCommentsCell ()
@property (nonatomic, strong) NSIndexPath *indexPath;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end

@implementation JCReportCommentsCell

- (void)setValueForIndexPath:(NSIndexPath *)indexPath
                commemtModel:(JCReportCommentModel *)commentModel{
    _indexPath = indexPath;
    if (indexPath.row == 0) {
        _nameLabel.text = @"Coach Review";
        _contentLabel.text = commentModel.coachReview;
    }else if (indexPath.row == 1){
        _nameLabel.text = @"Training Suggestion";
        _contentLabel.text = commentModel.suggestion;
    }else if (indexPath.row == 2){
        _nameLabel.text = @"Learning Course";
        _contentLabel.text = commentModel.course;
    }
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
